package org.abacus.platform.client.widget;

import java.util.Hashtable;
import java.util.Vector;

import javax.swing.JTree;
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;

public class Tree extends Widget {
	final JTree tree;

	public Tree() {
		tree = new JTree();
	}

	public Tree(Hashtable<?, ?> value) {
		tree = new JTree(value);
	}

	public Tree(Object[] value) {
		tree = new JTree(value);
	}

	public Tree(TreeModel newModel) {
		tree = new JTree(newModel);
	}

	public Tree(TreeNode root, boolean asksAllowsChildren) {
		tree = new JTree(root, asksAllowsChildren);
	}

	public Tree(TreeNode root) {
		tree = new JTree(root);
	}

	public Tree(Vector<?> value) {
		tree = new JTree(value);
	}
}
